package ch8.Fly;
//鸟类
public class Bird implements Fly{
    private String species;//种类

    public Bird(String species) {
        this.species = species;
    }

    @Override
    public void fly() {
        System.out.println(this.getSpecies()+"一日乘风起，扶摇直上九万里！");
    }

    public String getSpecies() {
        return species;
    }

    public void setSpecies(String species) {
        this.species = species;
    }
}
